package com.ruoyi.project.cyq.order.service.impl;

import com.ruoyi.project.cyq.order.domain.*;
import com.ruoyi.project.cyq.order.mapper.*;
import com.ruoyi.project.cyq.order.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.ModelMap;

import java.util.List;

/**
 *
 */
@Service
public class OrderServiceImpl implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> selectOrderList(Order order) {
        List<Order> orders = orderMapper.selectOrderList(order);
        return orders;
    }

    @Override
    public Order selectOrderById(Long id) {
        Order order = orderMapper.selectOrderById(id);
        return order;
    }

    /**
     * 通过OderNumber查询订单
     * */
    @Override
    public Order selectOrderByOrderNumber(Long valueOf) {
        return orderMapper.selectOrderByOrderNumber(valueOf);
    }
}
